package com.log.james.service;

import com.log.james.mapper.AbnormalDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

@Service
public class AbnormalService implements AbnormalDao,Serializable {
    @Autowired
    private AbnormalDao abnormalDao;

    @Override
    public List<Map<String, Object>> findIpAbnormal(Date st, Date et, int num) {
        List<Map<String,Object>> lists = abnormalDao.findIpAbnormal(st, et, num);
        return lists;
    }

    @Override
    public List<Map<String, Object>> findAllIpAbnormal(Date st, Date et) {
        List<Map<String,Object>> list = abnormalDao.findAllIpAbnormal(st,et);
        return list;
    }

    @Override
    public List<Map<String, Object>> findPortAbnormal(Date st, Date et, int num) {
        List<Map<String,Object>> lists = abnormalDao.findPortAbnormal(st, et, num);
        return lists;
    }

    @Override
    public List<Map<String, Object>> findAllPortAbnormal(Date st, Date et) {
        List<Map<String,Object>> lists = abnormalDao.findAllPortAbnormal(st, et);
        return lists;
    }

    @Override
    public List<Map<String, Object>> findFireWallStreamAbnormal(Date st, Date et, int num) {
        List<Map<String,Object>> lists = abnormalDao.findFireWallStreamAbnormal(st, et, num);
        return lists;
    }

    @Override
    public List<Map<String, Object>> findAllFireWallStreamAbnormal(Date st, Date et) {
        List<Map<String,Object>> lists = abnormalDao.findAllFireWallStreamAbnormal(st, et);
        return lists;
    }

    @Override
    public List<Map<String, Object>> findWebStreamAbnormal(Date st, Date et, int num) {
        List<Map<String,Object>> lists = abnormalDao.findWebStreamAbnormal(st, et, num);
        return lists;
    }

    @Override
    public List<Map<String, Object>> findAllWebStreamAbnormal(Date st, Date et) {
        List<Map<String,Object>> lists = abnormalDao.findAllWebStreamAbnormal(st, et);
        return lists;
    }

    @Override
    public List<Map<String, Object>> findVisitorAbnormal(Date st, Date et, int num) {
        List<Map<String,Object>> lists = abnormalDao.findVisitorAbnormal(st,et,num);
        return lists;
    }

    @Override
    public List<Map<String, Object>> findAllVisitorAbnormal(Date st, Date et) {
        List<Map<String,Object>> lists = abnormalDao.findAllVisitorAbnormal(st, et);
        return lists;
    }
}
